]> dgit.raspbian.org Git - gnome-shell.git/commit
st/icon-theme: Pick best-matching name from all themes
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 5 Jul 2023 19:01:17 +0000 (21:01 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 13 Jul 2023 15:15:56 +0000 (15:15 +0000)
commitb3b4eeb496ebdcffc6341c00d21871f10c8301b7
treef40385bed2fc4b707229a3c68314f06833bb53c5
parentb0384bee99f1aac62628d23abd42ff696dca8f76
st/icon-theme: Pick best-matching name from all themes

When resolving an icon name, we currently look in all themes in
order whether one of the requested names matches.

That means, a "keyboard" icon from the configured theme will
trump over any of "keyboard-shift", "keyboard-brightness" and
"keyboard-preferences" from lower-ranked themes (like "Adwaita"
and "hicolor").

That applies to custom icons we include in the resource, which
are added to the fallback ("hicolor") theme.

We are less bound by the named-icons spec than GTK, so we can
adapt the lookup to prefer the most accurate match to matches
from the highest priority theme.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2824>
src/st/st-icon-theme.c